<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分类</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body>
<ul class="layui-nav" style="text-align: center">
    {foreach $type_info as $item}
    <li class="layui-nav-item"><a href="{:url('admin/information/type_list')}?id={$item['type_id']}">{$item['type_name']}</a></li>
    {/foreach}
</ul>

<table class="layui-table" style="width: 1000px;height: 200px;margin: 0 auto" lay-even lay-skin="nob">
    <tr>
        <th>标题</th>
        <th>内容</th>
        <th>操作</th>
    </tr>
    {foreach $data as $item}
    <tr>
        <td><a href="{:url('admin/information/information_detail')}?id={$item['id']}">{$item['title']}</a></td>
        <td>{$item['content']}</td>
        <td>
            {in name="$item['id']" value='$infor_id'}
            已收藏
            {else/}
            未收藏
            {/in}
        </td>
    </tr>
    {/foreach}
</table>
</body>
</html>
<!-- 引入 layui.js -->
<script src="/layui/layui.js"></script>
<script>
    layui.use(['layer', 'form'], function(){
        var layer = layui.layer
            ,form = layui.form;

    });
    layui.use('element', function(){
        var element = layui.element;
</script>
